import fs from 'fs';
import path from 'path';


export function loadBlogData() {

    const BLOG_DIR = process.env.BLOG_DIR
    const filePath = path.join(BLOG_DIR, ".zettelkasten")

    const data = fs.readFileSync(filePath, 'utf8');
    return JSON.parse(data);
}